﻿using System;

namespace XamlMvp
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
    public class AutoEventAttribute : Attribute
    {
        readonly string eventName;

        public string EventName { get { return eventName; } }

        public AutoEventAttribute(string eventName)
        {
            if (eventName == null) throw new ArgumentNullException("eventName");
            this.eventName = eventName;
        }
    }
}
